<?php
session_start();
error_reporting(E_ALL^E_NOTICE);
header("Content-Type:text/html;   charset=utf8");
$con = mysql_connect("localhost","root","");
mysql_query("SET NAMES 'UTF8'");//防止数据乱码，很重要哦！！！！！
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("sign_up", $con);
if($_POST['username']=='qmxwebroot'&&$_POST['password']=='123456')

echo "<script>alert('登录成功!');location='admin.php';</script>";

 else
 {
    echo "<script>alert('用户名或密码错误！');history.back();</script>";
 }

mysql_close($con);
?>